package com.shanjupay.merchant.convert;

import com.shanjupay.merchant.api.dto.AppDTO;
import com.shanjupay.merchant.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AppCovert {
    //获取接口实例
    AppCovert INSTANCE =  Mappers.getMapper(AppCovert.class);
    //entity转化dto
    AppDTO entityToDto(App entity);
    //dto转化entity
    App  dtoToEntity(AppDTO appDTO);

    //list存储AppEntity转化为list存储的dto
    List<AppDTO> listentity2dto(List<App> apps);
}
